package com.xiebishe.mylibrary.net.retrofit.remoteCallAdapter

import com.xiebishe.mylibrary.net.retrofit.bean.NetBaseBean
import retrofit2.Call
import retrofit2.CallAdapter
import java.lang.reflect.Type

internal class RemoteCallAdapter(private val responseType: Type) : CallAdapter<NetBaseBean<Any>, RetrofitRemoteCall<Any>> {


    override fun responseType(): Type {
        return responseType
    }

    override fun adapt(call: Call<NetBaseBean<Any>>): RetrofitRemoteCall<Any> {
        return RetrofitRemoteCall(call)
    }

}